<script>
	export default {
		onLaunch: function() {
			
			let res = uni.getSystemInfoSync() // 获取系统信息
			let top = (44 + res.statusBarHeight) * 2;
              console.log("top:",top);
			uni.setStorage({
				key: 'top',
				data: top,
				success: function() {
					console.log("top:",top);
				}
			});
			uni.loadFontFace({
				global: true, // 是否全局生效
				family: 'font-name', // 定义的字体名称
				source: 'url("https://icard.foemy.com/movanFile/xcx/my-font.ttf")', // 字体资源的地址。建议格式为 TTF 和 WOFF，WOFF2 在低版本的iOS上会不兼容。
				success(res) {

					console.log('成功的回调函数')
				},
				fail() {
					console.log('失败的回调函数')
				},

			})

		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import "static/font/stylesheet.css";

	@font-face {
		font-family: "font-name";
		src: url('@/static/font/my-font.ttf');
	}

	/*每个页面公共css */
	page {
		width: 100%;
		height: 100%;
		font-family: font-name;
	}

	.wh100 {
		width: 100%;
		height: 100%;
	}

	.page-box {
		width: 100%;
		min-height: 100%;
		background: #FAEDFC;
		padding-bottom: 130rpx;
	}

	.no-box {
		width: 100%;
		height: 60rpx;
		font-size: 30rpx;
		color: #8d8d8d;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	/* //=======================================超出显示省略号 */
	.line-one {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.line-two {
		width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.line-three {
		width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
</style>